﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="QueryEnlistment.ascx.vb"
    Inherits="WebForm_ManageEnlistment_QueryEnlistment" %>
<%@ Register Src="~/WebForm/CommonControl/AnnualControl.ascx" TagName="AnnualControl"
    TagPrefix="My" %>
<table>
    <tr>
        <td align="right">
            <asp:Label ID="lblAnnual" runat="server" meta:resourcekey="lblAnnual"></asp:Label>
        </td>
        <td align="left">
            <my:annualcontrol id="AnnualControl1" runat="server" />
        </td>
    </tr>
    <tr>
        <td align="right">
            <asp:Label ID="lblOrganization" runat="server" meta:resourcekey="lblOrganization"></asp:Label>
        </td>
        <td align="left">
            <asp:DropDownList ID="ddlOrganization" runat="server" AutoPostBack="false">
            </asp:DropDownList>
        </td>
        <td align="left">
            <asp:Button ID="btnQuery" runat="server" meta:resourcekey="btnQuery" />
        </td>
    </tr>
</table>
<br />
<my:mygridview id="GV" runat="server" skinid="pager" allowhoverselect="False" datakeynames="EnlistID"
    allowhovereffect="False" mysortdirection="Ascending" mouseovercolor="Yellow"
    autogeneratecolumns="False" allowpaging="True" allowsorting="True">
    <Columns>
        <asp:BoundField DataField="EnlistName" HeaderText="<%$ Resources:EnlistName %>" />
        <asp:BoundField DataField="OrganizationName" HeaderText="<%$ Resources:OrganizationName %>" />
 
        
                <asp:BoundField DataField="Owner" HeaderText="<%$ Resources:Owner %>" />
                        <asp:BoundField DataField="PhoneNumber" HeaderText="<%$ Resources:PhoneNumber %>" />
        
               
        
        <asp:TemplateField HeaderText="<%$ Resources:ApplyDate %>">
            <itemtemplate>
                <%#Eval("ApplyStartDate", "{0:yyyy/MM/dd}")%>~<%#Eval("ApplyEndDate", "{0:yyyy/MM/dd}")%>
            </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
        <asp:TemplateField>
            <itemtemplate>
                <asp:MultiView ID="mvForm" runat="server" ActiveViewIndex="0">
                    <asp:View ID="vwEdit" runat="server">
                <asp:LinkButton ID="lbtnEdit" runat="server" 
                    Text="<%$ Resources:Edit %>" CommandName="Edit"></asp:LinkButton>                    
                    </asp:View>                                    
                    <asp:View ID="vwSelect" runat="server">
                <asp:LinkButton ID="lbtnSelect" runat="server" 
                    Text="<%$ Resources:Select %>" CommandName="Select"></asp:LinkButton>                                
                    </asp:View>
                </asp:MultiView>
            </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <itemtemplate>
                <asp:LinkButton ID="lbtnDelete" runat="server" CausesValidation="False" 
                    CommandName="Delete" onclientclick="<%$ Resources:DeleteConfirm %>" 
                    Text="<%$ Resources:Delete %>"></asp:LinkButton>
            </itemtemplate>
            <itemstyle horizontalalign="Center" />
        </asp:TemplateField>
    </Columns>
</my:mygridview>
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="BLL_Delete"
    OldValuesParameterFormatString="original_{0}" SelectMethod="BLL_Select" TypeName="BLL_QueryEnlistment">
    <DeleteParameters>
        <asp:Parameter Name="original_EnlistID" Type="Int32" />
    </DeleteParameters>
    <SelectParameters>
        <asp:Parameter Name="UOrganizationID" Type="String" />
        <asp:Parameter Name="Annual" Type="String" />
    </SelectParameters>
</asp:ObjectDataSource>
